# -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-

# def options(opt):
#     pass

# def configure(conf):
#     conf.check_nonfatal(header_name='stdint.h', define_name='HAVE_STDINT_H')

def build(bld):
    module = bld.create_ns3_module('robo', ['core'])
    module.source = [
        'model/const-location-mobility.cc',
        'model/fangle2.cc',
        'model/function-mobility.cc',
        'model/fvector2.cc',
        'model/robo-actor.cc',
        'model/robo-ammo.cc',
        'model/robo-base.cc',
        'model/robo-common.cc',
        'model/robo-geometry.cc',
        'model/robo-judge.cc',
        'model/robo-mobility.cc',
        'model/robo-supply.cc',
        'model/robo-weapon.cc',
        'model/variable-speed-mobility.cc',
        'helper/robo-team-helper.cc',
        ]

    module_test = bld.create_ns3_module_test_library('robo')
    module_test.source = [
        'test/robo-test-suite.cc',
        ]

    headers = bld(features='ns3header')
    headers.module = 'robo'
    headers.source = [
        'model/const-location-mobility.h',
        'model/fangle2.h',
        'model/function-mobility.h',
        'model/fvector2.h',
        'model/robo-actor.h',
        'model/robo-ammo.h',
        'model/robo-base.h',
        'model/robo-common.h',
        'model/robo-geometry.h',
        'model/robo-judge.h',
        'model/robo-mobility.h',
        'model/robo-supply.h',
        'model/robo-weapon.h',
        'model/singleton-object.h',
        'model/variable-speed-mobility.h',
        'helper/robo-team-helper.h',
        ]

    if bld.env.ENABLE_EXAMPLES:
        bld.recurse('examples')

    # bld.ns3_python_bindings()

